package cn.com.w.sharding.controller;

import cn.com.w.sharding.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Autowired
    private IUserInfoService iUserInfoService;

    @GetMapping("/{userNo}")
    public String getUser(@PathVariable("userNo") String userNo){
        return iUserInfoService.getOne(userNo);
    }

}
